A modern, honest, and multi-distribution setup guide for connecting to Cisco AnyConnect SSL VPN servers on Linux without the proprietary Cisco Secure Client bloat.
Discover gists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright: (c) 2019, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| # To use, copy the .psm1 file locally and run | |
| # Import-Module -Name Get-SnapshotPath.psm1 | |
| # Get-SnapshotPath -Path "\\server\share" | |
| Add-Type -TypeDefinition @' | |
| using Microsoft.Win32.SafeHandles; | |
| using System; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright: (c) 2021, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| Function Get-Shortcut { | |
| [CmdletBinding(DefaultParameterSetName='Path')] | |
| param ( | |
| [Parameter( | |
| Mandatory = $true, | |
| Position = 0, | |
| ValueFromPipeline = $true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright: (c) 2021, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| Function ConvertTo-UnattendedIso { | |
| <# | |
| .SYNOPSIS | |
| Converts a Windows ISO to one that doesn't require any keys to press on boot. | |
| .PARAMETER Path | |
| The Windows ISO to convert the UEFI loader to the no_prompt version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright: (c) 2021, Jordan Borean (@jborean93) <jborean93@gmail.com> | |
| # MIT License (see LICENSE or https://opensource.org/licenses/MIT) | |
| Function Get-DomainController { | |
| <# | |
| .SYNOPSIS | |
| Get the domain controller information. | |
| .DESCRIPTION | |
| Returns the name and additional information for the domain controller that matches the criteria specified. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Add-Type -TypeDefinition @' | |
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.IO; | |
| using System.Runtime.InteropServices; | |
| namespace Kernel32 | |
| { | |
| public enum FileInfoLevel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Server 2025 fails to run Get-AppxPackage and other DISM module commands in | |
| # a PSRemoting (psrp) session as it has a dependency on some dll's not present | |
| # in the GAC and only in the powershell.exe directory. As PSRP runs through | |
| # wsmprovhost.exe, it fails to find those dlls. This hack will manually load | |
| # the 4 required dlls into the GAC. This is a hack and should be removed in the | |
| # future if MS fix their bug on 2025. | |
| Add-Type -AssemblyName "System.EnterpriseServices" | |
| $publish = [System.EnterpriseServices.Internal.Publish]::new() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Safe AUR compromise indicator checker for the June 2026 Atomic Arch campaign. | |
| # Read-only: does not install packages, does not run package build scripts, does not execute files found on disk. | |
| set -Eeuo pipefail | |
| IFS=$' | |
| ' | |
| RED=$'\033[0;31m'; GREEN=$'\033[0;32m'; YELLOW=$'\033[1;33m'; CYAN=$'\033[0;36m'; NC=$'\033[0m' | |
| PASS=0; WARN=0; FAIL=0; SKIP=0 | |
| USE_REMOTE=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Pulls the live package list from the official Arch Linux HedgeDoc note. | |
| LIST_URL="https://md.archlinux.org/s/SxbqukK6IA" | |
| echo "Fetching infected package list..." | |
| raw=$(curl -fsSL "$LIST_URL") || { echo "ERROR: failed to fetch $LIST_URL"; exit 1; } | |
| # Extract lines that look like package names only (lowercase, digits, dots, plus, underscore, hyphen) |
NewerOlder